/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eval;

import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author
 */
public class EventImpl implements Event {

    String name;
    List<Block> blocks;
    Trigger trigger;

    public EventImpl() {
        blocks = new LinkedList<>();
        trigger = null;
        name = null;
    }

    public void setTrigger(Trigger trigger) {
        this.trigger = trigger;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void addBlock(Block b) {
        blocks.add(b);
    }
}
